using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace InfoTech.VinhSon.Bussiness
{
	[Serializable]
	[Table("[dbo].[Article]")]
	public partial class Article
	{

		#region Properties

		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[Required]
		[Column("Id")]
		public System.Int32 Id { get; set; }

		[Column("Name")]
		public System.String Name { get; set; }

		[Column("Description")]
		public System.String Description { get; set; }

		[Column("Thumbnail")]
		public System.String Thumbnail { get; set; }

		[Column("Detail")]
		public System.String Detail { get; set; }

		[Column("Activated")]
		public System.Boolean? Activated { get; set; }

		[Column("Link")]
		public System.String Link { get; set; }

		[Column("Url")]
		public System.String Url { get; set; }

		[Column("Status")]
		public System.Int32? Status { get; set; }

		[Column("Inactive")]
		public System.Boolean? Inactive { get; set; }

		[Column("LastModified")]
		public System.DateTime? LastModified { get; set; }

		#endregion

		#region Navigation

		public virtual ICollection<Section> Sections { get; set; }

		public virtual Category Category { get; set; }

        public virtual ICollection<Group> Groups { get; set; }

        public virtual ICollection<ArticleGroup> ArticleGroups { get; set; }

		#endregion

	}
}
